//
//  NRWLoginView.h
//  NRWMall
//
//  Created by 邢毅 on 2018/5/21.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    LoginSuccess,
    LoginCancel
} LoginState;

@class NRWLoginView;

@protocol NRWLoginViewDelegate<NSObject>

- (void)loginView:(NRWLoginView *)view loginStateDidChange:(LoginState)loginState;

@end

@interface NRWLoginView : UIView

@property (copy, nonatomic) void(^loginSuccessBlock)(void);

@property (weak, nonatomic) id<NRWLoginViewDelegate> delegate;

- (void)show;

- (void)dismiss;

@property (nonatomic, copy) NSString *type;

@end
